
<form id="form_edit">
<input type="hidden" name="customer" value="{[$result.customer]}" />
<table>
	<tr>
		<td width="20%" align="right">报关：</td>
		<td width="30%"><input type="text" name="export" value="{[$result.export]}" size="12"></td>
		<td width="20%" align="right">供应商：</td>
		<td width="30%"><input type="text" name="supplier" id="supplier"
				value="{[$result.supplier]}:{[$result.supplier_t]}" size="12"
				title="{[$t.supplier]}"></td>
	</tr>
	<tr>
		<td align="right">事由：</td>
		<td colspan="3"><textarea rows="2" name="name" cols="55">{[$result.name]}</textarea></td>
	</tr>
	<tr>
		<td align="right">毛重：</td>
		<td><input type="text" name="weight2" id="weight2" size="12" value="{[$result.weight2]}"></td>
		<td align="right">净重：</td>
		<td><input type="text" name="weight1" id="weight1" size="12" value="{[$result.weight1]}"></td>
	</tr>
	<tr>
		<td align="right">金额：</td>
		<td colspan="3"><input type="text" name="amount" id="amount" value="{[$result.amount]}" size="12"> <select name='currency'
			id='currency'>
			{[html_options options=$currency_option selected=$result.currency]}
		</select> <label id="label_amount"></label></td>
	</tr>
	<tr>
		<td align="right">汇率：</td>
		<td><input type="text" name="rate" id="rate" value="{[$result.rate]}" size="12"></td>
		<td align="right">人民币：</td>
		<td><input type="text" name="rmb" id="rmb" value="{[$result.rmb]}" size="12"></td>
	</tr>	
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="2" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>

<script type='text/javascript'>
var a = $("#amount").val();
var b = $("#currency").find("option:selected").text();

Currency.upper(a, b, "#label_amount");

var exchange = {[$result.exchange]};
</script>

<script type="text/javascript" src="js/finance/contract/item/add.js?r={[$smarty.now]}"></script>
